{{!-- 获取多数据部件字段 --}}
{{#* inline 'getMdCtrl' formDetail}}
    {{#and (eq formDetail.detailType 'MDCTRL') (eq formDetail.contentType 'REPEATER')}}
get {{lowerCase formDetail.name}}() {
    return transformValue('{{lowerCase formDetail.name}}', model, true, this.$DO.{{#if formDetail.psAppDEField}}{{lowerCase formDetail.psAppDEField.codeName}}{{else if formDetail.fieldName}}{{lowerCase formDetail.fieldName}}{{else}}{{lowerCase formDetail.name}}{{/if}});
}

set {{lowerCase formDetail.name}}(value: any) {
    this.$DO.{{#if formDetail.psAppDEField}}{{lowerCase formDetail.psAppDEField.codeName}}{{else if formDetail.fieldName}}{{lowerCase formDetail.fieldName}}{{else}}{{lowerCase formDetail.name}}{{/if}} = transformValue('{{lowerCase formDetail.name}}', model, false, value);
}
    {{/and}}
    {{#and formDetail.psDEFormDetails (neq formDetail.detailType 'MDCTRL')}}
        {{#each formDetail.psDEFormDetails as | children |}}
    {{> getMdCtrl formDetail=children}}
        {{/each}}
    {{/and}}
    {{#if formDetail.psDEFormTabPages}}
        {{#each formDetail.psDEFormTabPages as | children |}}
    {{> getMdCtrl formDetail=children}}
        {{/each}}
    {{/if}}
{{/inline}}
{{!-- 获取多数据部件字段标识 --}}
{{#* inline 'getMdCtrlKey' formDetail}}
    {{~#and (eq formDetail.detailType 'MDCTRL') (eq formDetail.contentType 'REPEATER')}}
'{{lowerCase formDetail.name}}',
    {{/and~}}
    {{#and formDetail.psDEFormDetails (neq formDetail.detailType 'MDCTRL')}}
        {{#each formDetail.psDEFormDetails as | children |}}
    {{> getMdCtrlKey formDetail=children}}
        {{/each}}
    {{/and}}
    {{#if formDetail.psDEFormTabPages}}
        {{#each formDetail.psDEFormTabPages as | children |}}
    {{> getMdCtrlKey formDetail=children}}
        {{/each}}
    {{/if}}
{{/inline}}
// 基于template/src/widgets/\{{appEntities}}/\{{ctrls@FORM}}-form/\{{spinalCase ctrl.codeName}}-form-vo.ts.hbs生成
import { ControlVOBase } from '@/core';
import { transformValue } from '@/utils';
import { model } from './{{spinalCase ctrl.codeName}}-form-model';

export class {{pascalCase ctrl.name}}ControlVO extends ControlVOBase {
    constructor(data: any) {
        //  表单预置字段
        data.srfwfmemo = data['srfwfmemo'] ? data['srfwfmemo'] : '';
        data.srffrontuf = data['srffrontuf'] ? data['srffrontuf'] : '';
        super(data);
        //  表单自持属性
        this.$ownKeys = [{{#if ctrl.psDEFormPages}}{{#each ctrl.psDEFormPages as | formPage |}}{{~#each formPage.psDEFormDetails as | formDetail |}}{{> getMdCtrlKey formDetail=formDetail}}{{/each~}}{{/each}}{{/if}}{{#each ctrl.psDEFormItems as | item |}}'{{lowerCase item.id}}'{{#unless @last}}, {{/unless}}{{/each}}];
    }
{{#each ctrl.psDEFormItems as | item |}}
  {{#if item.psAppDEField}}
    get {{lowerCase item.id}}() {
        return this.$DO.{{lowerCase item.psAppDEField.codeName}};
    }
    set {{lowerCase item.id}}(value: any) {
        this.$DO.{{lowerCase item.psAppDEField.codeName}} = value;
    }
  {{/if}}
{{/each}}
    // 界面主键标识
    get {{lowerCase ctrl.psAppDataEntity.codeName}}() {
        return this.$DO.{{lowerCase ctrl.psAppDataEntity.keyPSAppDEField.codeName}};
    }

    set {{lowerCase ctrl.psAppDataEntity.codeName}}(value: any) {
        this.$DO.{{lowerCase ctrl.psAppDataEntity.keyPSAppDEField.codeName}} = value;
    }

    //  工作流预置字段
    srfwfmemo: any;
    srffrontuf: any;

    //  无实体属性表单项
{{#each ctrl.psDEFormItems as | item |}}
  {{#and (eq item.psAppDEField null) (neq item.id 'srfuf')}}
    {{#and (neq item.id 'srforikey') (neq item.id 'srfdeid') (neq item.id 'srfsourcekey') (neq item.id 'srfwfmemo') (neq item.id 'srffrontuf')}}
    get {{lowerCase item.id}}() {
        return this.$DO.{{lowerCase item.id}};
    }

    set {{lowerCase item.id}}(value: any) {
        this.$DO.{{lowerCase item.id}} = value;
    }
    {{/and}}
  {{/and}}
{{/each}}

    //  表单重复器
{{#if ctrl.psDEFormPages}}
    {{#each ctrl.psDEFormPages as | formPage |}}
        {{#each formPage.psDEFormDetails as | formDetail |}}
{{> getMdCtrl formDetail=formDetail}}
        {{/each}}
    {{/each}}
{{/if}}

    /**
     * 返回后台数据
     *
     * @return {*} 
     * @memberof {{pascalCase ctrl.name}}ControlVO
     */
	public getDo() {
        return {
            srffrontuf: this.srffrontuf,
            {{formHelper 'GETDO' ctrl}}
        }
	}

}